import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import pinia from './store'
import i18n from './locales'
import 'element-plus/theme-chalk/el-message.css'
import 'element-plus/theme-chalk/el-message-box.css'// src\main.ts
import "virtual:svg-icons-register"; //引入svg图标

const app = createApp(App)

//配置路由
app.use(router)
//状态管理
app.use(pinia)
//国际化
app.use(i18n)

app.mount('#app')
.$nextTick(() => {
  postMessage({ payload: 'removeLoading' }, '*')
})
